<center><h2 class="postTitle"><font color = "black">Przeglądanie problemów</font></h2></center>
<br/>
<center>

<form action="index.php?location=pokaz_problem" method="post">
<input type="hidden" name="location" value="pokaz_problem" />
<select name="show_problem"" style="width: 100px">
      <?php
      		$owner_list = get_all_owners();
      		$curr_user = $_SESSION['user'];
      		echo '<option value="'.$curr_user.'">'. $curr_user .'</option>';
      		echo '<option value="ALL">'. "ALL" .'</option>'; 
      		
      		foreach ($owner_list as $owner){
      			if ($curr_user != $owner)
      				echo '<option value="'.$owner.'">'. $owner .'</option>'; 
     		}
      ?>
</select>
<input type="submit" value="Pokaż"/>
</form>

</center>
